added basic localjs support and an example