Remove $global dependency and remove deprecated functions
Responsive design (part 2)