fixed wrong function name in main.js