updated the javascript interface to better handle properties
Merge pull request #159 from mtnlife999/master

updated the javascript interface to better handle properties