javascript added for timeline - not working