added JS require test case