AdapterJS class for helper functions and variables

- Added AdapterJS class
- Added required updates for plugin integration