finally it works on all browsers