rewrites shorthand notation to valid longform .js