Added possibility to use JavaScript