add post domready and javascript event