Javascript implementation of user idle timout in Polymer Project