New attempt
Updated js ref.