delete test and js lib
updated with comments