fixed ontabswitched not a function error
version set to 2.1.4