Added inCanvas method to facebook js object