move javascript directory and delete old files.