use jquery .attr instead of hasAttribute/setAttribute
use jquery to set CSS properties
give page separator a more meaningful CSS class