Splits a given JavaScript file into as many parsable snippets as possible.