Moved javascript to the js file. Small edit on styles.