Added JS_DIR constant