Add comments
Change styles according to Google Javascript Style Guide