A simple js code edit