Fixes Javascript style to follow gaia conventions