changed the way javascript is loaded in active admin