Updated management javascript