jQuery like module in Java