* fixing bug, 'default' is a reserved word in javascript