moved js to it's own file, updated readme