Changed duplicate function name in data.js