Fixed location of prettydate file
added Qunit files and altered index accordingly.
refactored test code