Changed the URL to print servlet, adopted examples and tests
Modified some buggy styling options in the resizeFunction
Implement test cases