fix attempt 2

moved all the clouded js into files