front end javascript completed