fixed ejs Js problem
merge from sapi
fixed sapi sliba
revise sapi code 2