move javascript sources to src/main/javascript_source to allow more automated testing in the future
fix wrong order of arguments