javascript file is not enqueing

Using your code as-is enqueue works.

Although your arguments are a little off. The true you are supplying to load script in footer (I presume) is actually getting fed into a version argument. So if you are looking for it in the footer with this code it is de-facto loading in the header.