Convert to string if not already

This could allow a user to use a buffer, for instance.
Merge pull request #1 from monokrome/patch-1

Convert to string if not already
Added Makefile
Distribution now uses JS files