Javascript library interface/execution