added jquery, changed structure a bit