Misc changes, read descritption

1) Die is there is an error
2) Use jQuery
3) Use jQuery to detect the change