function test removed
fix wrong Math.max use
var settings