Created the external .js file...

Created the external .js file for plugin and included it within the
root directory