Adding missing js code.