more methods from PHP 2 JS