added publish.js and frontpage.js