Add forgoten / to js library detection

Signed-off-by: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
t/runtests: Move argument parsing into its own sub

Signed-off-by: Niels Thykier <niels@thykier.net>