javascript tests implemented