Created tests for javascript