moving js and html in client