JavaScript code template and convention guide