Fixed mismatched tags and bad vars in JS.
Added CSS topcat mobile style.