JS parser support for object methods

Summary:
Following ES6,
enhanced the syntax of properties in object literals from fields of the form x: ..
to fields and methods of x() { .. }

Test Plan:
make tests
(added a test)

Reviewers: pad

Reviewed By: pad

CC: bhosmer, bryano

Differential Revision: https://phabricator.fb.com/D1258984