Removed unused files and made some fixes to please JSLint.