Added JS APIs Task 4