Enables use of the Page Visibility API, with a minor bugfix.

Enyo-DCO-1.1-Signed-off-by: Jason Robitaille <jason.robitaille@lge.com>