improvements for js interaction

Signed-off-by: Kai Boernert <kai-boernert@visiongamestudios.de>