convert js idioms to underscore