responsive fixes. separate js functions to ext file.