encapsulate JS functions for Facebook
fire event when accessing Event view