Deleted unnecessary js code