Have you turned on developer mode for XSJS? http://www.youtube.com/watch?v=cnSQhrxnWNs&feature=c4-overview&list=UUVLSTvSR7UAd87o_0qoIR4Q
This might help with getting a more detailed error message back. Also you might consider posting the source code of your XSJS file here.