adds javascript from home to role page