use jQuery to make it work on old browsers