Updated pages java script documentation