Let html indentation to be 2 spaces
Add JavaScript-Indent plugin.

It let's vim autoindent js inside html correctly.