SNAPModule now checks that the surce file exists in JS mode

Added sample files to demonstrate