removed unnecessary js code