adding bean and id to renderer->getJS methods

Signed-off-by: Kevin Nguyen <k.nguyen@thecodingmachine.com>