Homepage: fix client-side scripts