makefile: determine release version via semver
makefile: simplify JavaScript file generation