Javascript Application Testing in Pure Javascript