format all the code about timelime by javascript and output html by grunt