Tools: JS beautify code

Added precommit hook that beautifies code before commiting or jscs-ing it

Change-Id: Icfc2474e98ced0f4b52c34624004c595b7f4d4df