var parts = 'notes.add'.split('.'), obj = parts[0], method = parts[1]; window[obj][method].call(window[obj]);