Added old js for backward compatibility