Move client scripts to their own file