You are overwriting your record module with a vari...
# suitescript
m
You are overwriting your record module with a variable, and you are not exposing your library module either. Those don't appear to be your problem, but they hurt my eyes to behold.