Fixed JS compilation