cleaning up js garbage