Moved list module JavaScript code to correct place.