Refactoring -> commenting javascript