Add new api to server.js, check it with jslint and corrected typo for timetable loading