update
adjust the on click to be attached to the document
fix loader
add phpjs lib