Fixed default options getting overwritten (now by val rather than by ref using jQuery extend).