only create html file if javascript file exist

should make errors more clear #9