Java and jQuery additions