Transfered stuff.js code to other files