debug,js and drop to clipboard

Added a debug functionality and drop to clipbaord of text