some default function for javascript