Adds mobile and desktop js variable.