we should agree on a style to define functions, sometimes we have then as 
var core = function(){}
and sometimes as 
function core(){}