Added support for opera, and webkit prefixes & optimised tick function