Fix docs page up, make a common api evaluation JS function