moving div definition and min/max val into prototype object