Removed custom javascript function