Add JavaScript/HTML version of the test.php file

Pull the shit put of this.