Web: Javascript cleanup