Fix scrolling by hash link upwards

Use $.data() instead of getAttribute