added javascript reflection