jsだよね?
±何%という上限下限が同じのものならMath.absが使える
あとはクロージャー使って
function hoge(orig_price, limit) {
return function(price) {...}
}
てな書き方のほうがjsぽい