fantasy javascript