Socket.io needs to be defined before script.js