Simple browser in java