Add some common.js methods. Fix some slidepage styles