Fix double JS loading