Added Javascript Console Debugging