updated js parts of plugin
changed js parts of plugin