got javascript on log workout page working