refactor js for banner px and title positioning