Added JS check for responsive functionality