Set html indentation to 4 and use js2-mode for javascript.