added background color and separate js file