Move JavaScript test cases

I move all JavaScript test case files from test/js/tests to test/js and
update Gruntfile.