started function javascripting