remove intermediate directories for js resources