changed jquery calls to version < 1.6 (.attr() instead of .prop())