add insertAfter and addOnloadFunction to my js libaray
syntax error