added javascript for those pesky browsers that don't handle vmin