Using javascript to create an interactive background