added general.js