Update JavaScript best practices

Horizon as a project needs some best practices in place for client side
coding

Change-Id: I1361a9b203f2bb9c2f6a65e60f940aaff43935dd
Merge "Update JavaScript best practices"