add navigation dots

separate the script for the plugin, and add the style for nav dots.