fixed jQuery error; added global option to npm install