Refractored to normal pure html/css/js