Removed some unused code

moved to unused.js