Works in chrome and fx