make sure tempjs file is at same path as original

Needed for relative requires