fix #6, javascript resource extensions with a cookbook example