Changed js directory. Refactored all code.