Create previousnext.js