Use js2-mode for javascript. Thx @sw1nn!