removing extra lines and changing jquery ready statement in script.js