added karim's js