Implement some of scripts.js