Rest of javascript, take 2