added init.js for global data