remove guide from js
clean up code