Extracted JS from Webclient to own file