Revert "Fix race condition in JS load"

This reverts commit 21036b57def42a7549b756626f34b84a759102d6.
Move scripts to head