Already redirect when visiting the registration page, not only on POST
Fix weight CSV export test
Reformat some of the JS code according to JSlint