Common tools to Javascript