Fixed bug in javascript.c: now it selects correct planet in phasedRVData