Control your javascript interactions from the server