adds royal slider and fixes map scaling
moves js into its own file