Create basic JS timer