Initial templates for JavaScript generation

Change-Id: If0592aa32e4abfdb4ce836a90614cdc8e09e51e1