added user_id varialbe to js