tweak constants using js