Return to root directory after compiling JavaScript