adds javascrpt that randomises roles displayed on the homepage