add new common js code for tipitaka app