Moved code to common.js
Removed
Added filtered function and NiceScroll
Cleanup