adding revised js file; fixed restart problem