add function(divide) to main.js