move js code, update readme