And the javascript for better looking