add semicolon
add jshint
fixing incorrect order when displaying the data