Added generic functionality to js and added a wide thing to css