Reorder JS calls

Duh?