Added more style, writing js file