Eliminating magic numbers

Now it is easy to use named positions like that.
```php
$this->registerJs("var tor; function foo(){};", 'POS_HEAD', 'my-options');
```
It will be easy to remeber and it can be used by not experienced users.