Refactored some javascript