added transitions to js