Fix #37 - Firefox JS now works (slightly different implementation of active page detection)