A Javascript framework for Agent Based Modelling