Dotts in javascript