fixed JS directory, messed up Clearing