separated classes works in browser