Extracted browser pertinent code to a separated file