worked on mobile javascript