Added random page, and moved hashing functions to page js