firstCommit javascriptCode in mac