Need to divide up client-side and server-side scripts