init javascript starting template