added intent to js