Made browser compatible