Fix typo
Fix race condition on JS inclusion