Value/path helper functions for javascript objects