more JS moved out to separate files --KW