Replaced deprecated jQuery method .attr() with .prop()

Packed new version