fixes javascript and creates mobile/tablet styles