fixed .val('') for native support

Fixed bug that prevents the .val('') to work in modern browsers