Fix file permissions

Signed-off-by: Boris HUISGEN <bhuisgen@hbis.fr>
Fix jshint warnings/errors

Signed-off-by: Boris HUISGEN <bhuisgen@hbis.fr>