adds javascript to user's page
adds javascript to user's page