Fixed JS loading