Add subscribe to js